package poly;

class Person {
    public void Skill() { }
    public void Say() { }
}

class Warrior extends Person {
    public void Skill(int i) {
        switch(i) {
            case 1: System.out.println("降龙十八掌");
            case 2: System.out.println("龙神功");
            case 3: System.out.println("六脉神剑");
            case 4: System.out.println("如来神掌");
        }
    }
}

class Christian1 extends Person {
    public void Say() {
        System.out.println("阿巴阿巴");
    }
}

class Christian2 extends Person {
    public void Say() {
        System.out.println("依古比古");
    }
}

class Christian3 extends Person {
    public void Say() {
        System.out.println("玛卡巴卡");
    }
}

public class Main {
    public static void main(String[] args) {
        Warrior Daxia = new Warrior();
        Daxia.Skill(1);
        Daxia.Skill(2);
        Daxia.Skill(3);
        Christian1 p1 = new Christian1();
        p1.Say();
        Christian2 p2 = new Christian2();
        p2.Say();
        Christian3 p3 = new Christian3();
        p3.Say();
    }
}
